/*
 * @Author       : huangzb
 * @Date         : 2024-01-25 20:01:08
 * @LastEditors: guangyunl
 * @LastEditTime: 2024-03-27 01:42:18
 * @Description  : file content
 * @FilePath     : \Interface\app\router\r_products.js
 */
/*
 * @Author       : huangzb
 * @Date         : 2024-01-25 20:01:08
 * @LastEditors  : huangzb
 * @LastEditTime : 2024-03-04 16:12:28
 * @Description  : file content
 * @FilePath     : \Interface\app\router\r_products.js
 */
// 商品信息1 - 路由
"use strict";

module.exports = app => {
  const { router, controller } = app;
  router.get("/tube/admin/queryProducts", controller.cProducts.pc_c_query);
  router.post("/tube/admin/createProducts", controller.cProducts.pc_c_create);
  router.put("/tube/admin/updateProducts", controller.cProducts.pc_c_update);
  router.delete("/tube/admin/deleteProducts", controller.cProducts.pc_c_delete);

  //首页搜索
  router.get('/tube/wa/searchProducts', controller.cProducts.wa_c_search_products);
  //商品详情
  router.get('/tube/wa/detailProduct', controller.cProducts.wa_c_detail);
  //   router.post('/tube/admin/batchMountProduct', controller.cProduct.pc_c_batchMount);
  //   router.post('/tube/admin/deleteMountProduct', controller.cProduct.pc_c_deleteMountProduct);

  //   router.get('/tube/user/queryProduct', controller.cProduct.wa_c_query);
};
